# Description: explicitly link against libX11
#  The binary uses its symbols and not linking explicitly causes
#  a failure to build with GNU binutils gold
# Author: Bhavani Shankar R <bhavi@ubuntu.com>
# Bug-Debian: http://bugs.debian.org/554373
# Forwarded: no

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -33,7 +33,7 @@ noinst_HEADERS = \
 	dictgui.h \
 	language_tools.h 
 
-gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ 
+gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ -lX11
 
 AM_CXXFLAGS = @GTKMM_CFLAGS@ 
 AM_CPPFLAGS = -DDATA_DIR_CONFIG=\"$(datadir)/bgoffice/\" @CPPFLAGS@
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -186,7 +186,7 @@ noinst_HEADERS = \
 	dictgui.h \
 	language_tools.h 
 
-gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ 
+gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ -lX11
 AM_CXXFLAGS = @GTKMM_CFLAGS@ 
 AM_CPPFLAGS = -DDATA_DIR_CONFIG=\"$(datadir)/bgoffice/\" @CPPFLAGS@
 all: config.h
